import request from '@/utils/request'

// 查询cardInfo列表
export function listCardInfo(query) {
  return request({
    url: '/card/cardInfo/list',
    method: 'get',
    params: query
  })
}

// 查询所有cardInfo列表
export function allCardInfos(query) {
  return request({
    url: '/card/cardInfo/all/cardInfos',
    method: 'get',
    params: query
  })
}

// 查询cardInfo详细
export function getCardInfo(id) {
  return request({
    url: '/card/cardInfo/' + id,
    method: 'get'
  })
}

// 新增cardInfo
export function addCardInfo(data) {
  return request({
    url: '/card/cardInfo',
    method: 'post',
    data: data
  })
}

// 修改cardInfo
export function updateCardInfo(data) {
  return request({
    url: '/card/cardInfo',
    method: 'put',
    data: data
  })
}

// 删除cardInfo
export function delCardInfo(id) {
  return request({
    url: '/card/cardInfo/' + id,
    method: 'delete'
  })
}
